<!DOCTYPE html>
<!--suppress ThymeleafVariablesResolveInspection -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>场地一周信息查询页面</title>
    <link rel="stylesheet" th:href="@{../static/css/component.css}">
    <link rel="stylesheet" th:href="@{../static/css/admin.css}">
    <link rel="stylesheet" th:href="@{../static/css/font-awesome.min.css}">
    <script th:src="@{../static/js/JQuery2.1.4.js}"></script>
    <script th:src="@{../static/js/common.js}"></script>
    <script th:src="@{../static/js/vue.2.6.js}"></script>
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="rbody" id="findweek">
    <div class="top">
        当前位置：后台<i class="fa fa-fw fa-angle-right"></i>场地一周信息查询
    </div>
    <div class="main">
        <div class="container-fluid">
            <div class="col-sm-12" id="right">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        搜索
                    </div>
                    <div class="panel-body">
                        <form role="form">
                            <div  class="form-inline">
                                <div class="form-group">
                                    <label>楼层</label>
                                    <select class="form-control" name="placestorey">
                                        <option>一楼</option>
                                        <option>二楼</option>
                                        <option>三楼</option>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label>场地类型</label>
                                    <select class="form-control" name="placetype">
                                        <option>篮球场</option>
                                        <option>羽毛球场</option>
                                        <option>乒乓球场</option>
                                        <option>台球场</option>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <button type="button"  class="btn btn-default">开始筛选</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>

                <div class="table-responsive">
                    <table class="table table-striped ">
                        <thead>
                        <tr>
                            <th>预约单号</th>
                            <th>一卡通号</th>
                            <th>场地编号</th>
                            <th>场地楼层及类型</th>
                            <th>预约时间</th>
                            <th>准确时间段</th>
                            <th>场地预约类型</th>
                            <th>场地预约状态</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr v-for="(placeapply,index) in placeweeks">
                            <td>{{placeapply.apply_id}}</td>
                            <td>{{placeapply.user_id}}</td>
                            <td>{{placeapply.place_no}}</td>
                            <td>{{placeapply.place_storey}}/{{placeapply.place_type}}</td>
                            <td>{{placeapply.apply_date  | formatDate }}</td>
                            <td>{{placeapply.apply_period}}</td>
                            <td>{{placeapply.apply_type}}</td>
                            <td>{{placeapply.apply_state}}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <ul class="pagination">
                    <li v-if="show == '11'">
                        <a @click="getPlaceWeekInfo(page.prePage)">&laquo;</a>
                    </li>
                    <li v-if="show == '22'">
                        <a @click="researchAudits(page.prePage)">&laquo;</a>
                    </li>
                    <li v-for="index in page.pages" :class="(page.pageNum == index) ? 'active' : '' ">
                        <a><span>{{index}}</span></a>
                    </li>
                    <li v-if="show == '11'">
                        <a @click="getPlaceWeekInfo(page.nextPage)">&raquo;</a>
                    </li>
                    <li v-if="show == '22'">
                        <a @click="researchAudits(page.nextPage)">&raquo;</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<script th:src="@{../static/js/findweekinfo.js}"></script>
</body>
</html>